package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.Setmeal;
import com.sky.entity.SetmealDish;
import com.sky.enumeration.OperationType;
import com.sky.vo.SetmealVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    Integer countByDishIds(Long[] ids);

    void insertSetmealDishes(List<SetmealDish> setmealDishList);

    SetmealVO querySetmealById(Long id);

    List<SetmealDish> selectDishesBySetmealId(@Param("id") Long id);

    void deleteSetmealDishes(Long id);

    void deleteSetmealDishesByIds(Long[] ids);

    /**
     * 根据分类id查询套餐的数量
     * @param id
     * @return
     */


}
